package marchsoft.modules.selfFish.pisciculture.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import marchsoft.modules.selfFish.pisciculture.entity.Fish;
import marchsoft.modules.selfFish.pisciculture.entity.vo.FishVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheConfig;

/** 鱼群管理
 * @title FishMapper
 * @description 鱼群管理
 * @author Lenovo
 * @version 1.0
 * @create 2024-07-15 17:02
 */
@Mapper
@CacheConfig(cacheNames = "fish")
public interface FishMapper extends BaseMapper<Fish> {

    /** 查询
     * @param fishName: 🐟的名称
     * @param page: 分页对象
     * @return IPage<FishVo> 分页数据
     * @description:  获取鱼群列表
     */
    IPage<FishVo> getFishList(Page page, @Param("fishName") String fishName);
}
